package com.nowar.exception;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author: 谢无殇。
 * @Date : 2023-01-17 23:31
 */
@Getter
@Setter
@Builder
public class ServiceProxyException extends Exception {
    /**
     * 错误码
     */
    private int code;
    /**
     * 错误信息
     */
    private String message;

    public ServiceProxyException() {
        super();
    }

    public ServiceProxyException(int code) {
        this.code = code;
    }

    public ServiceProxyException(String message) {
        super(message);
        this.message = message;
    }

    public ServiceProxyException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public ServiceProxyException(String message, Throwable cause) {
        super(message, cause);
    }
}
